package top.zsyle.org.mapper;

import org.apache.ibatis.annotations.Param;
import top.zsyle.basic.mapper.BaseMapper;
import top.zsyle.org.domain.Employee;
import top.zsyle.system.domain.EmployeeRole;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {

    List<Employee> findAllByDeptId(Long id);

    Employee findByUsername(String username);

    void addMiddle(@Param("empId") Long id, @Param("roles") List<Long> roles);

    List<EmployeeRole> findRoleIdsByEIds(List<Long> eIds);

    Employee findByLogininfoId(Long id);

    List<Employee> findAllByShopId(Long shopId);
}
